package com.dhcc.bpm.modules.sandbox.service.impl;

import com.dhcc.bpm.modules.sandbox.entity.TestDictData;
import com.dhcc.bpm.modules.sandbox.vo.TestDictDataVO;
import com.dhcc.bpm.modules.sandbox.mapper.TestDictDataMapper;
import com.dhcc.bpm.modules.sandbox.service.ITestDictDataService;
import org.springblade.core.mp.base.BaseServiceImpl;
import org.springframework.stereotype.Service;
import com.baomidou.mybatisplus.core.metadata.IPage;

import java.util.List;

/**
 * @ClassName TestDictDataServiceImpl
 * @Description 测试数据表 服务实现类
 * @Author sjm
 * @Date 2020/2/21 0021 15:16
 * @Version V1.0
 * @Copyright: 2020 东华软件 . All rights reserved.
 **/
@Service
public class TestDictDataServiceImpl extends BaseServiceImpl<TestDictDataMapper, TestDictData> implements ITestDictDataService {

	/**
	 * 自定义分页
	 * @Author sjm
	 * @Date 18:20 2020/2/21 0021
	 * @param page
	 * @param testDictData
	 * @return com.baomidou.mybatisplus.core.metadata.IPage<com.dhcc.bpm.modules.sandbox.vo.TestDictDataVO>
	 **/
	@Override
	public IPage<TestDictDataVO> selectTestDictDataPage(IPage<TestDictDataVO> page, TestDictDataVO testDictData) {
		return page.setRecords(baseMapper.selectTestDictDataPage(page, testDictData));
	}

	/**
	 * 查询测试数据
	 * @Author sjm
	 * @Date 18:21 2020/2/21 0021
	 * @param testType
	 * @return java.util.List<com.dhcc.bpm.modules.sandbox.vo.TestDictDataVO>
	 **/
	@Override
	public List<TestDictDataVO> getByTestType(String testType) {
		return baseMapper.getByTestType(testType);
	}

}
